const _Fly = require("flyio/dist/npm/fly")
const EngineWrapper = require("flyio/dist/npm/engine-wrapper")
const adapter = require("./adapter/swan");
const wxEngine = EngineWrapper(adapter)
module.exports=function (engine) {
    return new _Fly(engine || wxEngine);
}